
import service from "../../../libs/request";

/**
 * 角色列表
 * @param data
 * @constructor
 */
export function RoleList(data){
    return service.request({
        url:"/admin/auth/roles/index",
        method:"get",
        params:data
    })
}

export function CreateAndUpdateRole(data) {
    return service.request({
        url:"/admin/auth/roles/create",
        method:"post",
        data:data
    })
}

export function DeleteRole(data) {
    return service.request({
        url:"/admin/auth/roles/delete",
        method:"post",
        data:data
    })
}

export function Assignment(data) {
    return service.request({
        url:"/admin/auth/roles/assignment",
        method:"post",
        data:data
    })
}

export function CloudPermission(data) {
    return service.request({
        url:"/admin/auth/roles/cloud-permission",
        method:"get",
        params:data
    })
}

export function CloudAssignment(data) {
    return service.request({
        url:"/admin/auth/roles/cloud-assignment",
        method:"post",
        data:data
    })
}
